<template>
        <a-modal width="800px" v-bind="$attrs" v-on="$listeners" :title="'分包商管理人员登录信息'">
        <template slot="footer">
          <a-button type="primary" @click="$emit('cancel')"> 关闭 </a-button>
        </template>
        <a-form-model>
          <a-row>
            <a-col :md="12" :sm="12">
              <a-form-model-item
                label="分公司"
                :labelCol="{ lg: { span: 5 }, sm: { span: 5 } }"
                :wrapperCol="{ lg: { span: 18 }, sm: { span: 18 } }"
                prop="branchId"
              >
                <BaseInput v-model="initData.branchName" disabled></BaseInput>
              </a-form-model-item>
            </a-col>
            <a-col :md="12" :sm="12">
              <a-form-model-item
                label="项目名称"
                :labelCol="{ lg: { span: 5 }, sm: { span: 5 } }"
                :wrapperCol="{ lg: { span: 18 }, sm: { span: 18 } }"
                prop="projectId"
              >
                <BaseInput v-model="initData.projectName" disabled></BaseInput>
              </a-form-model-item>
            </a-col>
          </a-row>
          <a-row>
            <a-col :md="12" :sm="12">
              <a-form-model-item
                label="项目编号"
                :labelCol="{ lg: { span: 5 }, sm: { span: 5 } }"
                :wrapperCol="{ lg: { span: 18 }, sm: { span: 18 } }"
              >
                <BaseInput v-model="initData.projectNum" disabled></BaseInput>
              </a-form-model-item>
            </a-col>
            <a-col :md="12" :sm="12">
              <a-form-model-item
                label="分包商名称"
                :labelCol="{ lg: { span: 5 }, sm: { span: 5 } }"
                :wrapperCol="{ lg: { span: 18 }, sm: { span: 18 } }"
              >
                <BaseInput v-model="initData.subContractorName" disabled></BaseInput>
              </a-form-model-item>
            </a-col>
          </a-row>
          <a-row>
            <a-col :md="12" :sm="12">
              <a-form-model-item
                label="进场时间"
                :labelCol="{ lg: { span: 5 }, sm: { span: 5 } }"
                :wrapperCol="{ lg: { span: 18 }, sm: { span: 18 } }"
              >
                <BaseInput v-model="initData.enterDate" disabled></BaseInput>
              </a-form-model-item>
            </a-col>
            <a-col :md="12" :sm="12">
              <a-form-model-item
                label="出场时间"
                :labelCol="{ lg: { span: 5 }, sm: { span: 5 } }"
                :wrapperCol="{ lg: { span: 18 }, sm: { span: 18 } }"
              >
                <BaseInput v-model="initData.exitDate" disabled></BaseInput>
              </a-form-model-item>
            </a-col>
          </a-row>
          <a-row>
            <a-col :md="12" :sm="12">
              <a-form-model-item
                label="登录人姓名"
                :labelCol="{ lg: { span: 5 }, sm: { span: 5 } }"
                :wrapperCol="{ lg: { span: 18 }, sm: { span: 18 } }"
              >
                <BaseInput v-model="initData.name"  disabled></BaseInput>
              </a-form-model-item>
            </a-col>
            <a-col :md="12" :sm="12">
              <a-form-model-item
                label="登录账号(电话号码)"
                :labelCol="{ lg: { span: 5 }, sm: { span: 5 } }"
                :wrapperCol="{ lg: { span: 18 }, sm: { span: 18 } }"
              >
                <BaseInput v-model="initData.phone" disabled></BaseInput>
              </a-form-model-item>
            </a-col>
          </a-row>
          <a-row>
            <a-col :md="12" :sm="12">
              <a-form-model-item
                label="登录人岗位"
                :labelCol="{ lg: { span: 5 }, sm: { span: 5 } }"
                :wrapperCol="{ lg: { span: 18 }, sm: { span: 18 } }"
              >
                <BaseInput v-model="initData.postName" disabled></BaseInput>
              </a-form-model-item>
            </a-col>
            <a-col :md="12" :sm="12">
              <a-form-model-item
                label="状态"
                :labelCol="{ lg: { span: 5 }, sm: { span: 5 } }"
                :wrapperCol="{ lg: { span: 18 }, sm: { span: 18 } }"
              >
                <BaseInput v-model="initData.statusName" disabled></BaseInput>
              </a-form-model-item>
            </a-col>
          </a-row>
        </a-form-model>
      </a-modal>
</template>

<script>
export default {
    name: 'SubContractorDetail',
    props: {
        initData: {
            type: Object,
            default() {
                return {}
            }
        }
    }
}
</script>

<style>

</style>